package com.coms.gateway.GlobalExeception;

import com.clms.common.R;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @program: clms-third
 * @description: 全局异常处理
 * @author: 大鱼
 * @create: 2021-07-29 11:52
 **/
@ControllerAdvice
public class GlobalExeception {
    @ExceptionHandler(value = Exception.class)
    public R exiceptionHander(Exception e) {
        e.printStackTrace();
        return R.error();
    }
}
